import {instance} from "@/http";

// 上述请求也可以按以下方式完成（可选）  params携带参数    axios 请求的结果Promise对象  支持promise语法
export  let getObject =  ()=> instance.get('/user/list', {
    params: {
        ID: 12345
    }
})

export let postObject = (formData)=>instance.post('/user/add',formData)

export let putObject = (formData)=>instance.put('/user/update',formData)

export let deleteObject = (id)=>instance.delete('/user/delete/'+id)

